package com.kokotchy.tuxcontrol.provider;

import android.net.Uri;
import android.provider.BaseColumns;

public final class MessageList {
	/**
	 * Notes table
	 */
	public static final class Messages implements BaseColumns {
		/**
		 * The MIME type of a {@link #CONTENT_URI} sub-directory of a single
		 * message.
		 */
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.kokotchy.message";

		/**
		 * The MIME type of {@link #CONTENT_URI} providing a directory of
		 * messages.
		 */
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.kokotchy.message";

		/**
		 * The content:// style URL for this table
		 */
		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/messages");

		/**
		 * The timestamp for when the message was sended
		 * <P>
		 * Type: INTEGER (long from System.curentTimeMillis())
		 * </P>
		 */
		public static final String DATE = "date";

		/**
		 * The default sort order for this table
		 */
		public static final String DEFAULT_SORT_ORDER = "date DESC";

		/**
		 * The locutor of the message
		 * <P>
		 * Type: TEXT
		 * </P>
		 */
		public static final String LOCUTOR = "locutor";

		/**
		 * The message itself
		 * <P>
		 * Type: TEXT
		 * </P>
		 */
		public static final String MESSAGE = "message";

		// This class cannot be instantiated
		private Messages() {
		}
	}

	public static final String AUTHORITY = "com.kokotchy.provider.MessageList";

	// This class cannot be instantiated
	private MessageList() {
	}
}
